<div id="login">
	<h2 class="head-alt">Realtv Login</h2>
	<ul class="tabs">
		<li><a href="#">Login</a></li>
		<li><a href="#">Lost Password ?</a></li>
	</ul>
	<div class="panes">

		<div>
			<%= form_tag session_path do %>
				<fieldset>
				<legend>Please enter user information!</legend>
				<label for="username">Username:</label><input id="username" name="username" type="text" />
				<label for="password">Password:</label><input id="password" name="password" type="password" />
				<label for="role">Login As:</label>
				<select id="role_id" name="role_id">
					<% @roles.each do |role| %>
						<option value="<%= role.id %>"><%= role.name %></option>
					<% end %>
				</select>
				<input type="submit" class="button" value="Log in" />

				</fieldset>
			<% end %>
		</div>
		<div>
			<%= form_tag url_for(:action => "reset_password") do %>
				<fieldset>
				<legend>Give us your email then we post your password!</legend>
				<label for="email">Email:</label><input id="email" name="email" type="text" />

				<input class="button pink" type="submit" value="Recover" />
				</fieldset>
			<% end %>
		</div>
	</div>
</div>

<% if alert.presence %>
  
	<div id="validation-summary">
		<div class="notification errors closable">
			<h3>Please correct the errors!</h3>
			<ul>
				<li><%= alert %></li>
			</ul>
		</div>
	</div>

<% end %>